-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[chore] add codeowner activity report workflow #46015
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[chore] add codeowner activity report workflow #46015
Conversation
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue Fixes <!--Describe what testing was performed and which tests were added.--> #### Testing <!--Describe the documentation added.--> #### Documentation <!--Please delete paragraphs that you did not use before submitting.--> --------- Signed-off-by: ChrsMark <[email protected]>
Signed-off-by: ChrsMark <[email protected]>
Signed-off-by: ChrsMark <[email protected]>
|
Sample output from the dry run: Code owner activity reportPeriod: 2026-01-12 – 2026-02-11 Each code owner (individuals only) must have reviewed or replied to at least 80% of the PRs and issues where they were the code owner for the component. Components in scope: processor/filter, processor/k8sattributes, processor/resourcedetection, processor/transform, receiver/filelog, receiver/hostmetrics, receiver/prometheus (and PRs
PRs below threshold
|
|
@mx-psi here is an attempt to count reviews per codeowner of the specific components that are targeting stability. I suggest that we focus on those only for now so as to avoid extra noise by checking the vast list of Contrib's components :). I wonder if 80% target is quite high though specially when we timeframe in a monthly period. Happy to tune the targets/checks accordingly. Also I only have the report for PRs but we can expand to report issues' stats as well if we find this useful either now or enable it on a later iteration. |
Signed-off-by: ChrsMark <[email protected]>
Signed-off-by: ChrsMark <[email protected]>
|
Should the report measure the PRs created by the codeowner itself ? Looking into my values, most of the PRs was created by me and I cannot review it 😅 |
Yeap, that's correct :) . I updated the logic and sample output: fb9e0e1#diff-3005a22a150a86354b703948d26e08bbf1654ac09b994e6ae7124114580740b3R255 |
Signed-off-by: ChrsMark <[email protected]>
|
Updated output sample: Code owner activity reportPeriod: 2026-01-13 – 2026-02-12 Each code owner (individuals only) must have reviewed or replied to at least 80% of the PRs and issues where they were the code owner for the component. Components in scope: processor/filter, processor/k8sattributes, processor/resourcedetection, processor/transform, receiver/filelog, receiver/hostmetrics, receiver/prometheus (and PRs
PRs below threshold
|
Thanks for working on this!
Yeah that makes sense to me
I agree it is quite high, we can start with something lower (maybe to start smaller we could do 50%). Also, the target was meant to be per component and not specifically per codeowner. We could lower the percentage do something like
Let's start with PRs for now to keep this small and add issues later? |
Description
This PR adds a workflow that reports code-owners' activity. The workflow only focuses on components that are listed for stability at #44130 since that's the main priority for now. We can expand the report for all components in contrib but that might be a bit noisy.
Link to tracking issue
Related to open-telemetry/opentelemetry-collector#14107
Testing
Running locally with:
Documentation
~
AI Usage disclaimer
The script of this PR is crafted mainly by using Cursor taking inspiration from the Weekly Report workflow script: /.github/workflows/scripts/generate-weekly-report.js